<?php

namespace App\Models;

use App\Helpers\BaseModel;
use App\Helpers\RequestCriteria;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Correction extends Model
{
    use HasFactory, RequestCriteria, BaseModel;

    protected $fillable = [
        'dev_id' ,
        'dev_type' , 
        'deviation' ,
        'deviation_rank',
        'advice' ,
        'remarks',
        'error_curve',
        'type'
    ];

    protected $casts = [
        'updated_at' => 'datetime:Y-m-d H:i:s',
        'created_at' => 'datetime:Y-m-d H:i:s',
        'deviation' => 'json',
        'deviation_rank' => 'json',
        'advice' => 'json',
        'error_curve' => 'json',
    ];
}
